//引入vue
import Vue from'vue'
//引入Vuex
import Vuex from 'vuex'
//引入state
import state from './state.js'
//引入mutation
import mutations from'./mutations.js'
//引入actions 
import actions from './actions.js'
//引入getters
import getters from'./getters.js'
//引入modules
import modules from'./modules/index.js'
//声明使用.
Vue.use(Vuex)
//暴露对象
export default new Vuex.Store({
	state,
	mutations,
	actions,
	getters,
	modules
})